package com.heima.es.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "tb_sku")
public class Sku implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer price;
    private Integer num;
    private String image;
    @TableField(value = "create_time")
    private Date createTime;
    @TableField(value = "category_id")
    private Integer categoryId;
    @TableField(value = "category_name")
    private String categoryName;
    @TableField(value = "brand_name")
    private String brandName;
}
